package com.xuanwei.xwcommon.entity.dto;

import java.util.HashMap;

public class R extends HashMap<String,Object> {


   public R ok(){
       this.put("code",200);
       return this;
   }

   public R fail(){
       this.put("code",500);
       return this;
   }

   public R data(Object data){
       this.put("data",data);
       return this;
   }
}
